package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

/**
 * <p>
 * 报废明细表
 * </p>
 *
 * @author xyk
 * @since 2021-04-22
 */
@Entity(tableName = "t_asset_scrap_scrapdetail")
public class ScrapScrapdetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 报废明细id
     */
    @ColumnInfo(name = "scrap_detail_id")
    @PrimaryKey(autoGenerate = true)
    private Long scrapDetailId;

    /**
     * 报废单号
     */
    @ColumnInfo(name = "scrap_id")
    private String scrapId;

    /**
     * 资产id
     */
    @ColumnInfo(name = "asset_id")
    private String assetId;

    /**
     * 原因
     */
    @ColumnInfo(name = "reason")
    private String reason;

    /**
     * 是否同意（1：是，2：否）
     */
    @ColumnInfo(name = "isaudit")
    private String isaudit;

    /**
     * 理由
     */
    @ColumnInfo(name = "text")
    private String text;

    /**
     * 是否完成（1：是，2否）
     */
    @ColumnInfo(name = "isfinish")
    private String isfinish;

    /**
     * 图片
     */
    @ColumnInfo(name = "image")
    private String image;

    /**
     * 状态
     */
    @ColumnInfo(name = "status")
    private String status;

    /**
     * 视频
     */
    @ColumnInfo(name = "video")
    private String video;

    @ColumnInfo(name = "is_flag")
    private String isFlag;

    @Ignore
    public ScrapScrapdetail() {
    }

    public ScrapScrapdetail(Long scrapDetailId, String scrapId, String assetId, String reason, String isaudit, String text, String isfinish, String image, String status, String video, String isFlag) {
        this.scrapDetailId = scrapDetailId;
        this.scrapId = scrapId;
        this.assetId = assetId;
        this.reason = reason;
        this.isaudit = isaudit;
        this.text = text;
        this.isfinish = isfinish;
        this.image = image;
        this.status = status;
        this.video = video;
        this.isFlag = isFlag;
    }

    public Long getScrapDetailId() {
        return scrapDetailId;
    }

    public void setScrapDetailId(Long scrapDetailId) {
        this.scrapDetailId = scrapDetailId;
    }

    public String getScrapId() {
        return scrapId;
    }

    public void setScrapId(String scrapId) {
        this.scrapId = scrapId;
    }

    public String getAssetId() {
        return assetId;
    }

    public void setAssetId(String assetId) {
        this.assetId = assetId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getIsaudit() {
        return isaudit;
    }

    public void setIsaudit(String isaudit) {
        this.isaudit = isaudit;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIsfinish() {
        return isfinish;
    }

    public void setIsfinish(String isfinish) {
        this.isfinish = isfinish;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }
}